#include <stdio.h>
#include <stdlib.h>

int main()
{
    /*******************code*******************/
    char str[1025];
    FILE *fp;
    fp = fopen("bookinformation", "r");
    while (feof(fp) != EOF)
    {
        if (fgets(str, 1024, fp)) //读取一行
            printf("%s", str);
        else
            break;
    }

    /******************************************/
    printf("\n\n****************************\n");
    printf("Press Enter key to continue\n");
    getchar();
    return 0;
    /******************************************/
}
